import request from '@/utils/request'

// 查询存货分类列表
export function listInventoryclass(query) {
  return request({
    url: '/basic/inventoryclass/inventoryclass/list',
    method: 'get',
    params: query
  })
}

// 查询存货分类详细
export function getInventoryclass(jcInventoryclassoid) {
  return request({
    url: '/basic/inventoryclass/inventoryclass/' + jcInventoryclassoid,
    method: 'get'
  })
}

// 新增存货分类
export function addInventoryclass(data) {
  return request({
    url: '/basic/inventoryclass/inventoryclass',
    method: 'post',
    data: data
  })
}

// 修改存货分类
export function updateInventoryclass(data) {
  return request({
    url: '/basic/inventoryclass/inventoryclass',
    method: 'put',
    data: data
  })
}

// 删除存货分类
export function delInventoryclass(jcInventoryclassoid) {
  return request({
    url: '/basic/inventoryclass/inventoryclass/' + jcInventoryclassoid,
    method: 'delete'
  })
}
